/*

BlackRabbit - OpenSource IDE.
@author Edward Sarkisyan (edward.sarkisyan@gmail.com)
Use LGPL (http://www.gnu.org/copyleft/lesser.html)

*/

#ifndef EXTENTIONMANAGER_H
#define EXTENTIONMANAGER_H

#include <QtGui/QDialog>
#include <QMap>
#include "languageextentioninterface.h"

namespace Ui {
    class ExtentionManager;
}

class ExtentionManager : public QDialog {
    Q_OBJECT
public:
    ExtentionManager(QWidget *parent = 0, QVector<Language*> *extentions = 0);
    ~ExtentionManager();
    Language* findExtention(QString key);
protected:
    void changeEvent(QEvent *e);

private:
    QMap<QString, Language*> m_extentions;
    Ui::ExtentionManager *m_ui;
};

#endif // EXTENTIONMANAGER_H
